package cn.tedu.ivos.application.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ApplicationSaveParamDTO {
    @Schema(description = "申请表id")
    private Long id;
    @Schema(description = "申请人id")
    private Long userId;
    @Schema(description = "申请人姓名")
    private String username;
    @Schema(description = "用车开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @Schema(description = "用车结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    @Schema(description = "驾照图片")
    private String imgUrl;
    @Schema(description = "出发地")
    private String departureAddr;
    @Schema(description = "目的地")
    private String destinationAddr;
    @Schema(description = "申请原因")
    private String reason;
    @Schema(description = "备注")
    private String remark;

    //申请表状态 申请表状态 已发起10 撤销20 审核中30 驳回40 已通过50 分配用车60 工单结束70
    @Schema(description = "申请单状态")
    private String status;
    @Schema(description = "分配车辆id")
    private Long vehicleId;
    @Schema(description = "审批人id集合")
    private List<Long> auditUserIdList;//[106,103]
}
